import torch

matrix = torch.tensor([[1, 2, 3],
                       [4, 5, 6]], dtype=torch.float)
vector = torch.tensor([0.1, 0.2, 0.3])
result = torch.mv(matrix, vector)

print(result)